<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<html xmlns:th="https://docs.spring.io/spring
boot/docs/3.1.5/reference/htmlsingle/index.html#web.servlet.spring-mvc.template-engines">
<head>
    <th:block th:include="include :: header('修改会议')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-conference-edit" th:object="${conference}">
            <input name="conferenceId" th:field="*{conferenceId}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label">会议议题名称;会议议题名称：</label>
                <div class="col-sm-8">
                    <input name="conferenceName" th:field="*{conferenceName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">会议密码;会议密码：</label>
                <div class="col-sm-8">
                    <input name="conferencePass" th:field="*{conferencePass}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">开始时间;开始时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="beginTime" th:value="${#dates.format(conference.beginTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">结束时间;结束时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="endTime" th:value="${#dates.format(conference.endTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
<!--            <div class="form-group">-->
<!--&lt;!&ndash;                <label class="col-sm-3 control-label">会议状态;会议状态：</label>&ndash;&gt;-->
<!--&lt;!&ndash;                <div class="col-sm-8">&ndash;&gt;-->
<!--&lt;!&ndash;                    <input name="conferenceState" th:field="*{conferenceState}" class="form-control" type="text">&ndash;&gt;-->
<!--&lt;!&ndash;                </div>&ndash;&gt;-->
<!--                <label className="col-sm-3 control-label">会议状态</label>-->
<!--&lt;!&ndash;                <div className="col-sm-8 form-control-static" name="conferenceState" th:field="*{conferenceState}" th:text="${@dict.getLabel('conference_state', status)}>&ndash;&gt;-->
<!--                <div className="col-sm-8 form-control-static" name="conferenceState" th:text="${@dict.getLabel('conference_state', conference.conferenceState)}></div>-->
<!--            </div>-->
            <div class="form-group">
                <label class="col-sm-3 control-label">删除标识;删除标识：</label>
                <div class="col-sm-8">
                    <input name="deletionFlag" th:field="*{deletionFlag}" class="form-control" type="text">
                </div>
            </div>
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">创建人;创建人：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="createdBy" th:field="*{createdBy}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">
                <label class="col-sm-3 control-label">创建时间;创建时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="createdTime" th:value="${#dates.format(conference.createdTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">更新人;更新人：</label>
                <div class="col-sm-8">
                    <input name="updatedBy" th:field="*{updatedBy}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">更新时间;更新时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="updatedTime" th:value="${#dates.format(conference.updatedTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "system/conference";
        $("#form-conference-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-conference-edit').serialize());
            }
        }

        $("input[name='beginTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='endTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='createdTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='updatedTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>
